﻿using System.ComponentModel.DataAnnotations;

namespace Api_Core_Spider.Models
{
    /// <summary>
    /// 激活请求模型，用于客户端向服务器发送激活请求
    /// </summary>
    public class ActivationRequest
    {
        /// <summary>
        /// 机器信息
        /// </summary>
        [Required]
        public MachineInfo MachineInfo { get; set; }

        /// <summary>
        /// 产品密钥
        /// </summary>
        [Required]
        public string ProductKey { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        public string UserName { get; set; }

        /// <summary>
        /// 联系邮箱
        /// </summary>
        [Required]
        [EmailAddress]
        public string Email { get; set; }

        public byte[] GenerateKey { get; set; }
    }
}
